/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * PantallaMateriales.java
 *
 * Created on 16-may-2011, 15:35:01
 */
package interfacesGraficas;

import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JInternalFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTable;
import javax.swing.JTextField;

/**
 *
 * @author diego
 */
public class PantallaMateriales extends JInternalFrame {

    /** Creates new form PantallaMateriales */
    public PantallaMateriales() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {
        java.awt.GridBagConstraints gridBagConstraints;

        panelFiltros = new javax.swing.JPanel();
        lblCodigo = new javax.swing.JLabel();
        lblNombre = new javax.swing.JLabel();
        cbxTipo = new javax.swing.JComboBox();
        txtNombre = new javax.swing.JTextField();
        txtCodigo = new javax.swing.JTextField();
        lblTipo = new javax.swing.JLabel();
        btnBuscar = new javax.swing.JButton();
        panelMateriales = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblMateriales = new javax.swing.JTable();
        barraHerramientasMaterial = new javax.swing.JToolBar();
        btnNuevoMaterial = new javax.swing.JButton();
        btnNuevoTipoMaterial = new javax.swing.JButton();
        btnModificarMat = new javax.swing.JButton();
        btnEliminarMaterial = new javax.swing.JButton();
        btnSalir = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createEtchedBorder());
        setClosable(true);
        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setMaximizable(true);
        getContentPane().setLayout(new java.awt.GridBagLayout());

        panelFiltros.setBorder(javax.swing.BorderFactory.createTitledBorder("Filtros"));
        panelFiltros.setLayout(new java.awt.GridBagLayout());

        lblCodigo.setText("Código");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 0);
        panelFiltros.add(lblCodigo, gridBagConstraints);

        lblNombre.setText("Nombre:");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 0);
        panelFiltros.add(lblNombre, gridBagConstraints);

        cbxTipo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        cbxTipo.setMaximumSize(new java.awt.Dimension(170, 27));
        cbxTipo.setMinimumSize(new java.awt.Dimension(170, 27));
        cbxTipo.setPreferredSize(new java.awt.Dimension(170, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 0);
        panelFiltros.add(cbxTipo, gridBagConstraints);

        txtNombre.setMaximumSize(new java.awt.Dimension(170, 27));
        txtNombre.setMinimumSize(new java.awt.Dimension(170, 27));
        txtNombre.setPreferredSize(new java.awt.Dimension(170, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 1;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 0);
        panelFiltros.add(txtNombre, gridBagConstraints);

        txtCodigo.setMaximumSize(new java.awt.Dimension(170, 27));
        txtCodigo.setMinimumSize(new java.awt.Dimension(170, 27));
        txtCodigo.setPreferredSize(new java.awt.Dimension(170, 27));
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 10, 0);
        panelFiltros.add(txtCodigo, gridBagConstraints);

        lblTipo.setText("Tipo");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 2;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.insets = new java.awt.Insets(5, 10, 0, 0);
        panelFiltros.add(lblTipo, gridBagConstraints);

        btnBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/edit-find.png"))); // NOI18N
        btnBuscar.setText("Buscar");
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 3;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.insets = new java.awt.Insets(0, 10, 0, 0);
        panelFiltros.add(btnBuscar, gridBagConstraints);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        getContentPane().add(panelFiltros, gridBagConstraints);

        panelMateriales.setBorder(javax.swing.BorderFactory.createTitledBorder("Materiales"));

        tblMateriales.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane1.setViewportView(tblMateriales);

        javax.swing.GroupLayout panelMaterialesLayout = new javax.swing.GroupLayout(panelMateriales);
        panelMateriales.setLayout(panelMaterialesLayout);
        panelMaterialesLayout.setHorizontalGroup(
            panelMaterialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMaterialesLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 638, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(39, Short.MAX_VALUE))
        );
        panelMaterialesLayout.setVerticalGroup(
            panelMaterialesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(panelMaterialesLayout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)
                .addContainerGap())
        );

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 2;
        gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        gridBagConstraints.weighty = 1.0;
        getContentPane().add(panelMateriales, gridBagConstraints);

        barraHerramientasMaterial.setFloatable(false);
        barraHerramientasMaterial.setRollover(true);

        btnNuevoMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/folder_new-30.png"))); // NOI18N
        btnNuevoMaterial.setToolTipText("Nuevo Material");
        barraHerramientasMaterial.add(btnNuevoMaterial);

        btnNuevoTipoMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Combo-Box-30.png"))); // NOI18N
        btnNuevoTipoMaterial.setToolTipText("Nuevo Tipo Material");
        barraHerramientasMaterial.add(btnNuevoTipoMaterial);

        btnModificarMat.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/document_pencil_30.png"))); // NOI18N
        btnModificarMat.setToolTipText("Modificar Material");
        btnModificarMat.setFocusable(false);
        btnModificarMat.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnModificarMat.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraHerramientasMaterial.add(btnModificarMat);

        btnEliminarMaterial.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/user-trash-30.png"))); // NOI18N
        btnEliminarMaterial.setToolTipText("Eliminar Material");
        barraHerramientasMaterial.add(btnEliminarMaterial);

        btnSalir.setIcon(new javax.swing.ImageIcon(getClass().getResource("/utilidades/imagenes/iconos/Log-out-30.png"))); // NOI18N
        btnSalir.setToolTipText("Salir");
        btnSalir.setFocusable(false);
        btnSalir.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        btnSalir.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
        barraHerramientasMaterial.add(btnSalir);

        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
        gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
        gridBagConstraints.weightx = 1.0;
        getContentPane().add(barraHerramientasMaterial, gridBagConstraints);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToolBar barraHerramientasMaterial;
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnEliminarMaterial;
    private javax.swing.JButton btnModificarMat;
    private javax.swing.JButton btnNuevoMaterial;
    private javax.swing.JButton btnNuevoTipoMaterial;
    private javax.swing.JButton btnSalir;
    private javax.swing.JComboBox cbxTipo;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JLabel lblCodigo;
    private javax.swing.JLabel lblNombre;
    private javax.swing.JLabel lblTipo;
    private javax.swing.JPanel panelFiltros;
    private javax.swing.JPanel panelMateriales;
    private javax.swing.JTable tblMateriales;
    private javax.swing.JTextField txtCodigo;
    private javax.swing.JTextField txtNombre;
    // End of variables declaration//GEN-END:variables

    public JButton getBtnNuevo() {
        return btnNuevoMaterial;
    }

    public JButton getBtnBuscar() {
        return btnBuscar;
    }

    public JComboBox getCbxTipo() {
        return cbxTipo;
    }

    public JPanel getPanelFiltros() {
        return panelFiltros;
    }

    public JPanel getPanelMateriales() {
        return panelMateriales;
    }

    public JTable getTblMateriales() {
        return tblMateriales;
    }

    public JTextField getTxtCodigo() {
        return txtCodigo;
    }

    public JTextField getTxtNombre() {
        return txtNombre;
    }

    public JButton getBtnNuevoTipoMaterial() {
        return btnNuevoTipoMaterial;
    }

    public JButton getBtnEliminarMaterial() {
        return btnEliminarMaterial;
    }

    public JLabel getLblTipo() {
        return lblTipo;
    }

    public JButton getBtnModificarMat() {
        return btnModificarMat;
    }

    public JButton getBtnSalir() {
        return btnSalir;
    }

}
